Skip to content

Commit 1ea98b8

Browse files
committed
Update test script
1 parent a4217d4 commit 1ea98b8

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

test/save.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
save_file () {
22
test="$1";
3-
for config in main crossref nomencl bibtex biblatex; do
4-
if [[ "$config" == "main" ]]; then
3+
for config in build crossref nomencl bibtex biblatex; do
4+
if [[ "$config" == "build" ]]; then
55
test_dir="test/testfiles";
66
else
77
test_dir="test/testfiles-$config";
88
fi
99
file_path="$test_dir/$test.tex";
1010
if [ -f "$file_path" ]; then
11-
if [[ "$config" == "main" ]]; then
11+
if [[ "$config" == "build" ]]; then
1212
l3build save --halt-on-error "$test" || exit 1;
1313
else
1414
l3build save --halt-on-error --config "test/config-$config" "$test" || exit 1;
@@ -20,7 +20,7 @@ save_file () {
2020

2121
save_config () {
2222
config="$1";
23-
if [[ "$config" == "main" ]]; then
23+
if [[ "$config" == "build" ]]; then
2424
for testfile in test/testfiles/*.tex; do
2525
test="$(basename "$testfile" .tex)";
2626
l3build save --halt-on-error "$test" || exit 1;
@@ -35,12 +35,12 @@ save_config () {
3535

3636

3737
if [[ $# -eq 0 ]]; then
38-
for config in main crossref nomencl bibtex biblatex; do
38+
for config in build crossref nomencl bibtex biblatex; do
3939
save_config $config;
4040
done
4141
else
4242
case $1 in
43-
main|crossref|nomencl|bibtex|biblatex)
43+
build|crossref|nomencl|bibtex|biblatex)
4444
save_config "$1";
4545
;;
4646

test/test.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ test="$(basename $1 .tex)";
22
baseline_dir="test/baseline";
33
diff_dir="test/diff";
44
baseline_path="$baseline_dir/$test.pdf";
5-
for config in main crossref nomencl bibtex biblatex; do
6-
if [[ "$config" == "main" ]]; then
5+
for config in build crossref nomencl bibtex biblatex; do
6+
if [[ "$config" == "build" ]]; then
77
test_dir="test/testfiles";
88
build_dir="build/test";
99
else
@@ -12,7 +12,7 @@ for config in main crossref nomencl bibtex biblatex; do
1212
fi
1313
file_path="$test_dir/$test.tex";
1414
if [ -f "$file_path" ]; then
15-
if [[ "$config" == "main" ]]; then
15+
if [[ "$config" == "build" ]]; then
1616
l3build save --halt-on-error "$test" || exit 1;
1717
else
1818
l3build save --halt-on-error --config "test/config-$config" "$test" || exit 1;

0 commit comments

Comments
 (0)