File tree Expand file tree Collapse file tree 4 files changed +16
-12
lines changed
Expand file tree Collapse file tree 4 files changed +16
-12
lines changed Original file line number Diff line number Diff line change 11#[ allow( unused_macros) ]
22macro_rules! engine_tests {
3- // ($test_fn:ident) => {
4- ( $test_fn: ident $( , $feature: literal) * ) => {
3+ // Handles both cases:
4+ // common::engine_tests!(rfdiffusion);
5+ // common::engine_tests!(rfdiffusion; "high-memory-tests");
6+ // common::engine_tests!(rfdiffusion; "high-memory-tests", "some-awesome-feature");
7+ //
8+ ( $test_fn: ident $( ; $( $feature: literal) ,+ $( , ) ?) ?) => {
59 :: paste:: paste! {
610
711 #[ test]
812 #[ serial_test:: serial]
913 #[ cfg_attr(
1014 not( all(
11- feature = "docker-tests" ,
12- $( feature = $feature) , *
15+ feature = "docker-tests"
16+ $( $ ( , feature = $feature) * ) ?
1317 ) ) ,
1418 ignore
1519 ) ]
@@ -22,27 +26,27 @@ macro_rules! engine_tests {
2226 #[ serial_test:: serial]
2327 #[ cfg_attr(
2428 not( all(
25- feature = "hpc-tests" ,
26- $( feature = $feature) , *
29+ feature = "hpc-tests"
30+ $( $ ( , feature = $feature) * ) ?
2731 ) ) ,
2832 ignore
2933 ) ]
3034 fn [ <singularity_ $test_fn>] ( ) {
3135 $test_fn( "singularity" ) ;
3236 }
37+
3338 #[ test]
3439 #[ serial_test:: serial]
3540 #[ cfg_attr(
3641 not( all(
37- feature = "hpc-tests" ,
38- $( feature = $feature) , *
42+ feature = "hpc-tests"
43+ $( $ ( , feature = $feature) * ) ?
3944 ) ) ,
4045 ignore
4146 ) ]
4247 fn [ <apptainer_ $test_fn>] ( ) {
4348 $test_fn( "apptainer" ) ;
4449 }
45-
4650 }
4751 } ;
4852}
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ common::engine_tests!(ligandmpnn);
88fn ligandmpnn ( engine : & str ) {
99 use assert_fs:: assert:: PathAssert ;
1010
11- let root = std:: path:: PathBuf :: from ( "target/proteinmpnn " ) . join ( engine) ;
11+ let root = std:: path:: PathBuf :: from ( "target/ligandmpnn " ) . join ( engine) ;
1212 std:: fs:: create_dir_all ( & root) . expect ( "create engine testing dir" ) ;
1313 let work_dir = TempDir :: new_in ( root) . expect ( "create temp dir" ) ;
1414
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ fn pyrosetta(engine: &str) {
1010 use assert_fs:: assert:: PathAssert ;
1111 use std:: fs;
1212
13- let root = std:: path:: PathBuf :: from ( "target/score " ) . join ( engine) ;
13+ let root = std:: path:: PathBuf :: from ( "target/pyrosetta " ) . join ( engine) ;
1414 std:: fs:: create_dir_all ( & root) . expect ( "create engine testing dir" ) ;
1515 let work_dir = TempDir :: new_in ( root) . expect ( "create temp dir" ) ;
1616
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ use assert_fs::TempDir;
33
44mod common;
55
6- common:: engine_tests!( rfdiffusion, "high-memory-tests" ) ;
6+ common:: engine_tests!( rfdiffusion; "high-memory-tests" ) ;
77
88fn rfdiffusion ( engine : & str ) {
99 use assert_fs:: assert:: PathAssert ;
You can’t perform that action at this time.
0 commit comments