~quf/tocs

41d689180ad0b1c3e210fa37616275ec549ba19a — Lukas Himbert 9 months ago 2827006
add data for softbrilliant's cs3 mod, split test data per game
D .builds/data.tar.xz.gpg => .builds/data.tar.xz.gpg +0 -0
A .builds/data/cs1.tar.xz.gpg => .builds/data/cs1.tar.xz.gpg +0 -0
A .builds/data/cs2.tar.xz.gpg => .builds/data/cs2.tar.xz.gpg +0 -0
A .builds/data/cs3.tar.xz.gpg => .builds/data/cs3.tar.xz.gpg +0 -0
A .builds/data/cs4.tar.xz.gpg => .builds/data/cs4.tar.xz.gpg +0 -0
A .builds/data/cs5.tar.xz.gpg => .builds/data/cs5.tar.xz.gpg +0 -0
A .builds/encrypt-private-test-data.sh => .builds/encrypt-private-test-data.sh +10 -0
@@ 0,0 1,10 @@
#!/bin/sh

set -ex

cd ../private-test-data/

for game in "$@"; do
  #printf "%s\n" "${game}"
  tar cJ "${game}" | gpg --symmetric --pinentry-mode loopback --passphrase-file="${HOME}/pw" > "../.builds/data/${game}.tar.xz.gpg"
done

M .builds/run-tests.yml => .builds/run-tests.yml +6 -4
@@ 13,16 13,18 @@ secrets:
 - 27a9ff08-1f06-471d-9318-b40ffe3568e2
tasks:
 - prepare-sccache: |
    mkdir -p "$HOME/.cargo/"
    echo '[build]' >> "$HOME/.cargo/config.toml"
    echo 'rustc-wrapper = "/usr/bin/sccache"' >> "$HOME/.cargo/config.toml"
    mkdir -p "${HOME}/.cargo/"
    echo '[build]' >> "${HOME}/.cargo/config.toml"
    echo 'rustc-wrapper = "/usr/bin/sccache"' >> "${HOME}/.cargo/config.toml"
 - install-cargo-audit: |
    cargo install cargo-audit
 - unpack-data: |
    cd tocs
    mkdir private-test-data
    cd private-test-data
    gpg --decrypt --passphrase-file "$HOME/tocs-data-password" --batch --pinentry-mode loopback < ../.builds/data.tar.xz.gpg | xzcat | tar xf -
    for game in cs{1,2,3,4,5}; do
      gpg --decrypt --passphrase-file "${HOME}/tocs-data-password" --batch --pinentry-mode loopback < "../.builds/data/${game}.tar.xz.gpg" | xzcat | tar xf -
    done
 - cargo-audit: |
    cd tocs
    sh audit.sh

M tocs/src/tbl/test.rs => tocs/src/tbl/test.rs +1 -0
@@ 12,6 12,7 @@ const TBL_TEST_FOLDERS: &[(
    ("private-test-data/cs2/nisa-pc-1.4.1/data/text/dat_us/", Version::CS2En, false, true),
    ("private-test-data/cs3/nisa-pc-1.0.5/data/text/", Version::CS3, false, false),
    ("private-test-data/cs3/softbrilliant-mod-1.0.6/data/text/", Version::CS3, false, false),
    ("private-test-data/cs3/softbrilliant-mod-1.0.7/data/text/", Version::CS3, false, false),
    ("private-test-data/cs4/nisa-switch-1.0.0/text/", Version::CS4, true, true),
    ("private-test-data/cs4/softbrilliant-mod-1.0.7/data/text/", Version::CS4, false, false),
    ("private-test-data/cs5/nisa-pc-1.0.2/text/", Version::CS5, true, true),