mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Make test_all_localizations
run at unittest
This commit is contained in:
parent
d90ec725cf
commit
9a0ac8dcce
@ -1,4 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
export VELOREN_ASSETS="$(pwd)/assets"
|
VELOREN_ASSETS="$(pwd)/assets"
|
||||||
time cargo test --package veloren-common-assets asset_tweak::tests --features asset_tweak --lib &&
|
export VELOREN_ASSETS
|
||||||
time cargo test
|
|
||||||
|
time cargo test \
|
||||||
|
--package veloren-common-assets asset_tweak::tests \
|
||||||
|
--features asset_tweak --lib &&
|
||||||
|
time cargo test --features stat
|
||||||
|
@ -30,6 +30,7 @@ fn keys_from_file(filepath: &Path) -> Vec<MsgId> {
|
|||||||
ResourceErr::parsing_error(errs, file.clone(), &content)
|
ResourceErr::parsing_error(errs, file.clone(), &content)
|
||||||
)
|
)
|
||||||
});
|
});
|
||||||
|
|
||||||
let mut keys = Vec::new();
|
let mut keys = Vec::new();
|
||||||
for entry in ast.body {
|
for entry in ast.body {
|
||||||
match entry {
|
match entry {
|
||||||
|
@ -163,10 +163,6 @@ impl assets::Compound for Language {
|
|||||||
|
|
||||||
// Here go dragons
|
// Here go dragons
|
||||||
for id in cache.load_dir::<raw::Resource>(path, true)?.ids() {
|
for id in cache.load_dir::<raw::Resource>(path, true)?.ids() {
|
||||||
if id.ends_with("_manifest") {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
match cache.load(id) {
|
match cache.load(id) {
|
||||||
Ok(handle) => {
|
Ok(handle) => {
|
||||||
let source: &raw::Resource = &*handle.read();
|
let source: &raw::Resource = &*handle.read();
|
||||||
@ -518,7 +514,6 @@ mod tests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[ignore]
|
|
||||||
#[cfg(feature = "stat")]
|
#[cfg(feature = "stat")]
|
||||||
// Generate translation stats
|
// Generate translation stats
|
||||||
fn test_all_localizations() {
|
fn test_all_localizations() {
|
||||||
|
Loading…
Reference in New Issue
Block a user