diff options
author | Benjamin Segovia <segovia.benjamin@gmail.com> | 2012-05-03 16:24:24 +0000 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-08-10 16:16:58 -0700 |
commit | ccd746d3af1a4778e5c145fb752ea5a739f70840 (patch) | |
tree | 0c2be48dec1047e9629210ecda488a5fa5e087f8 /utests/utest_run.cpp | |
parent | 1a9bcd8ff623a0b96cb034df711e4b02bfab8c6e (diff) | |
download | beignet-ccd746d3af1a4778e5c145fb752ea5a739f70840.tar.gz |
Revamped tests to make them smaller and simpler (and more automatic to use)
Diffstat (limited to 'utests/utest_run.cpp')
-rw-r--r-- | utests/utest_run.cpp | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/utests/utest_run.cpp b/utests/utest_run.cpp new file mode 100644 index 00000000..9721c75c --- /dev/null +++ b/utests/utest_run.cpp @@ -0,0 +1,36 @@ +/* + * Copyright © 2012 Intel Corporation + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see <http://www.gnu.org/licenses/>. + * + * Author: Benjamin Segovia <benjamin.segovia@intel.com> + */ + +/** + * \file utest_run.cpp + * \author Benjamin Segovia <benjamin.segovia@intel.com> + * + * Just run the unit tests. The user can possibly provides the subset of it + */ +#include "utest.hpp" + +int main(int argc, char *argv[]) +{ + if (argc >= 2) + for (int i = 1; i < argc; ++i) + UTest::run(argv[i]); + else + UTest::runAll(); +} + |