[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Complex commands in TESTS
From: |
David Fang |
Subject: |
Re: Complex commands in TESTS |
Date: |
Thu, 30 Mar 2006 17:16:53 -0500 (EST) |
> is there a way to have automake execute complex commands as tests? For
> example, currently I use something like:
>
> TESTS = numberAtoms input.sh
>
> But it would be nice to have, for instance, a command with arguments like
> input.sh a b c
> executed; is that possible, when yes, how? I've tried quoting so far
> (TESTS = numberAtoms "input.sh a b c") but it doesn't work.
Hi,
One simple way is to put the invocation commands into a built
shell script for each test:
TESTS = my_test.sh
my_test.sh:
echo "#!/bin/sh" > $@
echo "command arg1 arg2 arg3" >> $@
chmod +x $@
HTH
David