From 25ca1dd276334dc63b8e5431b864c879c972ab6b Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Thu, 20 May 2021 08:09:09 +0300 Subject: [PATCH] v test-all: test `-autofree` and `-prealloc` on V locally too --- cmd/tools/vtest-all.v | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/cmd/tools/vtest-all.v b/cmd/tools/vtest-all.v index f133b95ea0..628b4efb1a 100644 --- a/cmd/tools/vtest-all.v +++ b/cmd/tools/vtest-all.v @@ -59,15 +59,27 @@ fn get_all_commands() []Command { } res << Command{ line: '$vexe -o vtmp_werror -cstrict cmd/v' - okmsg: 'V can compile itself with -cstrict too.' + okmsg: 'V can compile itself with -cstrict.' + } + res << Command{ + line: '$vexe -o vtmp_autofree -autofree cmd/v' + okmsg: 'V can compile itself with -autofree.' + } + res << Command{ + line: '$vexe -o vtmp_prealloc -prealloc cmd/v' + okmsg: 'V can compile itself with -prealloc.' + } + res << Command{ + line: '$vexe -o vtmp_unused -skip-unused cmd/v' + okmsg: 'V can compile itself with -skip-unused.' } res << Command{ line: '$vexe $vargs -progress test-cleancode' - okmsg: 'All important .v files are invariant when processed with `v fmt`' + okmsg: 'All .v files are invariant when processed with `v fmt`' } res << Command{ line: '$vexe $vargs -progress test-fmt' - okmsg: 'All .v files can be processed with `v fmt`. NB: the result may not always be compilable, it just means that `v fmt` does not crash.' + okmsg: 'All .v files can be processed with `v fmt`. NB: the result may not always be compilable, but `v fmt` should not crash.' } res << Command{ line: '$vexe $vargs -progress test-self'