From aa21465a12fd1e20aba2c605b28a609c18935383 Mon Sep 17 00:00:00 2001 From: Benjamin Redelings Date: Thu, 29 May 2025 16:28:33 -0400 Subject: [PATCH] Run tests that the biogeo tutorials work --- tutorials/biogeo/tests.txt | 5 +++++ tutorials/run_tutorial_tests.sh | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 tutorials/biogeo/tests.txt diff --git a/tutorials/biogeo/tests.txt b/tutorials/biogeo/tests.txt new file mode 100644 index 00000000..7d6279fc --- /dev/null +++ b/tutorials/biogeo/tests.txt @@ -0,0 +1,5 @@ +run_simple.Rev +run_simple_phy.Rev +run_epoch.Rev +run_epoch_phy.Rev +mcmc_primates_bg_simple.Rev diff --git a/tutorials/run_tutorial_tests.sh b/tutorials/run_tutorial_tests.sh index 84b46c92..9fa8f8b7 100755 --- a/tutorials/run_tutorial_tests.sh +++ b/tutorials/run_tutorial_tests.sh @@ -62,7 +62,12 @@ for t in */tests.txt; do do ( cd scripts - sed 's/generations=[0-9]*/generations=1/g' "$script" | sed 's/checkpointInterval=[0-9]*/checkpointInterval=1/g' > "cp_$script" + cat "$script" | + sed 's/generations=[0-9]*/generations=1/g' | + sed 's/^n_gen *= *[0-9]*/n_gen = 1/' | + sed 's/\.burnin([0-9][0-9]*/.burnin(1/' | + sed 's/\.run([0-9][0-9]*/.run(1/' | + sed 's/checkpointInterval=[0-9]*/checkpointInterval=1/g' > "cp_$script" ) ${rb_exec} -b scripts/cp_$script res="$?"