diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2018-08-21 14:57:29 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2018-08-21 14:57:29 +0300 |
commit | b2c194aa4913afee30a78fc191912b9622a4d9ae (patch) | |
tree | db87e8160aecf92060769fbcb5ef385296d94478 /tests/new.test | |
parent | 132f04925608461b1c3c2682d4ef3d35f865a0bb (diff) |
Shorten build2 output matching regexes in testscripts
Diffstat (limited to 'tests/new.test')
-rw-r--r-- | tests/new.test | 29 |
1 files changed, 10 insertions, 19 deletions
diff --git a/tests/new.test b/tests/new.test index 491c155..6ae37e4 100644 --- a/tests/new.test +++ b/tests/new.test @@ -25,9 +25,8 @@ status += -d prj created new executable project prj-foo in $~/prj-foo/ EOE - $build prj-foo/ $cxx 2>>/EOE - c++ prj-foo/prj-foo/cxx{prj-foo} - ld prj-foo/prj-foo/exe{prj-foo} + $build prj-foo/ $cxx 2>>~%EOE% + %(c\+\+|ld) .+%{2} EOE } @@ -37,9 +36,8 @@ status += -d prj created new library project libprj-foo in $~/libprj-foo/ EOE - $build libprj-foo/ $cxx 2>>/~%EOE% - %.{4} - %ld libprj-foo/.+%{3} + $build libprj-foo/ $cxx 2>>~%EOE% + %(version\.in|c\+\+|ar|ld) .+%{7} EOE } @@ -59,9 +57,8 @@ status += -d prj created new library package libprj in $~/prj/libprj/ EOE - $build prj/libprj/ $cxx 2>>/~%EOE% - %.{4} - %ld prj/libprj/.+%{3} + $build prj/libprj/ $cxx 2>>~%EOE% + %(version\.in|c\+\+|ar|ld) .+%{7} EOE } @@ -109,11 +106,8 @@ status += -d prj $status >'prj configured 0.1.0-a.0.19700101000000'; - $build prj/ 2>>/EOE - mkdir prj-config/prj/fsdir{prj/} - c++ prj/prj/cxx{prj}@prj-config/prj/prj/ - ld prj-config/prj/prj/exe{prj} - ln prj-config/prj/prj/exe{prj} -> prj/prj/ + $build prj/ 2>>~%EOE% + %(mkdir|c\+\+|ld|ln) .+%{4} EOE } @@ -134,11 +128,8 @@ status += -d prj $status >'prj configured 0.1.0-a.0.19700101000000'; - $build prj/ 2>>/EOE - mkdir prj-cfg/prj/fsdir{prj/} - c++ prj/prj/cxx{prj}@prj-cfg/prj/prj/ - ld prj-cfg/prj/prj/exe{prj} - ln prj-cfg/prj/prj/exe{prj} -> prj/prj/ + $build prj/ 2>>~%EOE% + %(mkdir|c\+\+|ld|ln) .+%{4} EOE } } |