67 Commits
Author SHA1 Message Date
Copilotandstarseeker e1de4558e6 Add functional tests for AP242 styled_item with both narrowing approaches (#16)
Add AP242 styled_item functional test infrastructure
Test both vanilla AP242 schema (needs flow-sensitive narrowing)
and modded schema that is more strictly compliant.

Both schema tests use same STEP file

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: starseeker <238416+starseeker@users.noreply.github.com>
2026-02-09 15:42:50 -05:00
Clifford Yapp f35d25d93d Missed a header conversion 2022-10-03 21:41:17 -04:00
Clifford Yapp d824fc0c4e Keep longer directory names
We want to be consistent with the previous layout, to avoid needlessly
breaking existing codes.  The header update means client codes are not
required to include all of the stepcode library includes explicitly -
i.e., stepcode itself does not force this requirement with its own
internal includes.  However, if client codes do not want to add the
library prefixes to their own includes as we have for stepcode, they
should still be able to add the various includes and work as before.
Adjust the include directory names accordingly.
2022-10-02 17:57:57 -04:00
Clifford Yapp bc96f29d6b Move utils headers 2022-10-02 17:57:57 -04:00
Clifford Yapp 820ca86159 Move the cllazyfile headers, trim down judy arrays
I'm not sure if this logic was ever brought to a production level -
needs investigateion...  maybe we should just arcive it if there isn't
any active development?  Regardless, there appears to be no upstream
activity on the judy code, so just make it a part of cllazy directly.
2022-10-02 17:57:57 -04:00
Clifford Yapp f9f5c71204 Move editor headers 2022-10-02 17:57:57 -04:00
Clifford Yapp ac19698fde Move remaining stepcore headers 2022-10-02 17:57:57 -04:00
Clifford Yapp b36b78ffce Need to process a few more directories 2022-10-02 17:57:57 -04:00
Clifford Yapp 7dbda20be0 Remove base library from stepcode
Move specific pieces of logic still in use next to the individual parts
of the code that use them, and eliminate base from the code.
2022-09-26 20:52:17 +01:00
Clifford Yapp 97c3d193a1 sc_cf.h -> config.h
Remove unused sc_cf_cmake.h.in, rename sc_cf.h to the more standard name
"config.h", don't call the generator twice
2022-06-11 17:41:58 +01:00
Clifford Yapp 5e1ad8f1c8 Remove Raw() and getEDesc(), restore C asStr()
This commit removes the Raw and getEDesc methods in favor of the
simplicity of just making ptr and eDesc public.

Add back in previous version of asStr() that returns a C string.

aDesc is also made public.

These changes are motivated by BRL-CAD's use of stepcode.
2021-08-16 14:09:10 -04:00
Clifford Yapp 62be4c90c6 Use CMake 3.12 everywhere. 2021-08-15 09:22:59 +01:00
Chris HORLER 6cf5d1e860 CMake update
- variable usage, RPATHs, config header generation
 - remove the CMake core target
2021-08-15 09:22:29 +01:00
Chris HORLER e617808be1 simplify SC_VERSION and library versioning 2021-08-14 10:24:35 +01:00
Clifford Yapp 4f20f391c6 Reverting develop back to commit 548fd82ad7 2021-08-04 16:04:32 -04:00
Cliff Yapp 30683985ca Stray version header includes in test cc files 2020-12-15 15:07:37 -05:00
Cliff Yapp 93cb422595 Update formatting with astyle - use K&R 2020-12-09 09:26:27 -05:00
Cliff Yapp 74d9062ff1 Start making some fixes to tests 2020-12-08 19:57:58 -05:00
Cliff Yapp 1f4f78f905 Remove Raw() and getEDesc(), restore C asStr()
This commit removes the Raw and getEDesc methods in favor of the
simplicity of just making ptr and eDesc public.

Also, add back in previous version of asStr() that returns a C
string.  (These changes are motivated by BRL-CAD's step code.)
2020-12-08 19:03:12 -05:00
Chris HORLER 5ab50bb68f begin to modernise / simplify CMake code 2019-08-26 18:42:45 +01:00
Chris HORLER dc38153539 duplicate declaration of SchemaInit() - it's already in the schema's generated header 2019-08-26 18:42:45 +01:00
Chris HORLER 85b76db65a use _WIN32 for Windows and _MSC_VER for compiler checks 2019-08-26 17:38:09 +01:00
Mark Pictor bc5533bda8 test for, and use, nullptr if we have it 2015-08-03 21:37:28 -04:00
Mark Pictor 6e8cad223e cmake 2.8.7 needs append_string, not append 2015-08-02 15:37:45 -04:00
Mark Pictor 018e7cfffc reduce delay used in parallel test, as it appears to cause a failure.
TODO: rework the test to not be timing-sensitive
2015-08-02 14:53:36 -04:00
Mark Pictor dc82923cf1 support cmake 2.8.7 since that's what travis-ci uses 2015-08-02 14:28:53 -04:00
Mark Pictor aa967b3316 tweak includ dir logic, print path 2015-07-26 23:22:32 -04:00
Mark Pictor 17b41da525 add std::chrono test, if available use in thread test 2015-07-26 22:22:44 -04:00
Mark Pictor 135adc76c8 fix warning, improve cmake messages 2015-07-26 20:49:04 -04:00
Mark Pictor 017faa942f make schema-specific tests work on cmake 3.x 2015-07-26 20:49:04 -04:00
Mark Pictor 85f45f38e4 debug message for appveyor 2015-07-26 15:22:24 -04:00
Mark Pictor 4129d363b0 add stepcore test for segfault in STEPattribute::set_null() 2015-05-20 20:51:14 -04:00
Mark Pictor bfbd8df61e minor cleanup 2014-12-26 13:34:38 -05:00
Mark Pictor 921de860b0 closer... 2014-12-26 13:34:28 -05:00
Mark Pictor 5df2f69930 inching forward on inverse attrs 2014-12-26 13:32:24 -05:00
Mark Pictor 98283dca34 more work on inverse attrs, code generation 2014-12-26 13:31:21 -05:00
Mark Pictor 7222c91c01 update inverse attr test 3 2014-12-26 13:26:59 -05:00
Mark Pictor b1387b731e improve comments, a few other small changes that don't affect behavior 2014-12-26 13:24:56 -05:00
Mark Pictor d1062cddfa use lazyInstMgr for inverse_attr3.cc 2014-12-26 13:21:52 -05:00
Mark Pictor 6004ba458b remove outdated comment from inverse_attr2.cc 2014-12-26 13:21:52 -05:00
Mark Pictor 7f0a0f852f fix tests that were broken by file name changes 2014-03-01 11:53:31 -05:00
Mark Pictor 5c021b2b7f tests were broken because macro name changed
make two variables CACHE INTERNAL so that their values are available in other scopes (i.e. in test dirs)
2014-03-01 11:53:30 -05:00
Cliff Yapp 10fb7419b5 More whitespace and case tweaks 2014-03-01 11:53:30 -05:00
Cliff Yapp 44e02c957a whitespace changes 2014-03-01 11:53:30 -05:00
Cliff Yapp c0e74a9eef Add CMake footer comment to CMake files 2014-02-28 22:06:09 -05:00
davyw 02ef60aee2 Added DEFINE_DLL_IMPORTS to add_schema_dependent_test macro.
Added stepcore to libraries of aggregate_bound_runtime test to fix linker error.
2013-12-29 18:23:55 +01:00
Mark Pictor d146a62a84 update tests to work with STEPattribute class changes 2013-10-12 22:21:46 -04:00
Mark Pictor 959c9bc8d5 test_inverse_attrs2 works now because of the STEPattr copy ctor fix 2013-10-09 21:31:57 -04:00
Mark Pictor 3eb5b5374f move clstepcore cpp test dir into clstepcore 2013-10-09 21:31:57 -04:00
Kesha Shah 08d5407259 Unused Variables Removed 2013-08-14 17:38:43 -04:00