diff options
| author | Tyge Løvset <[email protected]> | 2023-01-21 17:00:05 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2023-01-21 17:00:05 +0100 |
| commit | 798f3a637818147eaf231f438c7b104387de70e5 (patch) | |
| tree | 36beb7177621d2605a27d048b931fad4a8b62d5d /misc/tests/main.c | |
| parent | e97d06f95a65edd4fdee53555398f7b636a72ab5 (diff) | |
| download | STC-modified-798f3a637818147eaf231f438c7b104387de70e5.tar.gz STC-modified-798f3a637818147eaf231f438c7b104387de70e5.zip | |
Added modified ctest from https://github.com/bvdberg/ctest, and used on cregex_test.c. Will modify furter to make more like GoogleTest
Diffstat (limited to 'misc/tests/main.c')
| -rw-r--r-- | misc/tests/main.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/misc/tests/main.c b/misc/tests/main.c new file mode 100644 index 00000000..2b8931c4 --- /dev/null +++ b/misc/tests/main.c @@ -0,0 +1,31 @@ +/* Copyright 2011-2023 Bas van den Berg + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include <stdio.h> + +#define CTEST_MAIN + +// uncomment lines below to enable/disable features. See README.md for details +//#define CTEST_NO_SEGFAULT +//#define CTEST_NO_COLORS +//#define CTEST_NO_COLOR_OK + +#include "ctest.h" + +int main(int argc, const char *argv[]) +{ + return ctest_main(argc, argv); +} + |
