https://github.com/tkoolen/matlabgitbisect
A git bisect run script for Matlab projects
https://github.com/tkoolen/matlabgitbisect
Last synced: about 2 months ago
JSON representation
A git bisect run script for Matlab projects
- Host: GitHub
- URL: https://github.com/tkoolen/matlabgitbisect
- Owner: tkoolen
- License: mit
- Created: 2015-03-31T22:53:51.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-04-16T05:49:31.000Z (about 10 years ago)
- Last Synced: 2025-01-22T03:41:43.750Z (3 months ago)
- Language: Python
- Homepage:
- Size: 160 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# MatlabGitBisect
```
matlabGitBisect -- a git bisect run script for Matlab projectsCreated by Twan Koolen on 2015-03-31.
Copyright 2015. All rights reserved.Licensed under MIT License
Distributed on an "AS IS" basis without warranties
or conditions of any kind, either express or implied.USAGE
optional arguments:
-h, --help show this help message and exit
-bc BUILDCODE, --build-code BUILDCODE
code to build before running
-bd BUILDDIR, --build-dir BUILDDIR
build directory
-t TESTCODE, --test-code TESTCODE
test code to run
-be {bad,skip}, --build-error-behavior {bad,skip}
behavior when a build error is detected.
-c {bad,skip}, --crash-behavior {bad,skip}
behavior when a crash is detected
```Example usage to find where `testThisAndThat` started causing Matlab crashes, skipping revisions that resulted in build errors:
```
git bisect start
git bisect bad
git bisect good 9dea818feee7673084457356dfd034ad2f1a1e75
git bisect run ~/code/MatlabGitBisect/src/matlabGitBisect.py -bc "make -j" -bd .. -t "cd ~/code/MyProject;testThisAndThat;" -be skip -c bad```