Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • opensrc/libehp
1 result
Show changes
Commits on Source (3)
...@@ -33,14 +33,12 @@ function main() ...@@ -33,14 +33,12 @@ function main()
echo "The report is: " echo "The report is: "
echo "$report" | tee fail_report.yaml echo "$report" | tee fail_report.yaml
local declare crash_count=$(echo "$report"|shyaml get-value failing-input-count) local declare crash_count=$(echo "$report"|shyaml get-value failing-input-count)
if [[ $crash_count == 0 ]]; then if [[ $crash_count == 0 ]]; then
echo "No crashes found" echo "No crashes found"
exit 0 exit 0
else else
set -x
# upload the report. # upload the report.
local proj_id=114 local proj_id=114
local upload_report=$(curl --request POST --header "PRIVATE-TOKEN: PXLgVFpgjmmugAiHTJzx " --form "file=@fail_report.yaml" https://git.zephyr-software.com/api/v4/projects/$proj_id/uploads) local upload_report=$(curl --request POST --header "PRIVATE-TOKEN: PXLgVFpgjmmugAiHTJzx " --form "file=@fail_report.yaml" https://git.zephyr-software.com/api/v4/projects/$proj_id/uploads)
...@@ -49,8 +47,7 @@ function main() ...@@ -49,8 +47,7 @@ function main()
local host=$(hostname) local host=$(hostname)
local md=$(echo $upload_report | shyaml get-value markdown) local md=$(echo $upload_report | shyaml get-value markdown)
local desc="" local desc=""
set +e # allow read to return non-zero as read does that on EOF read -r -d '' desc || true << EOM
read -r -d '' desc << EOM
Turbo automatically found $crash_count crashes! Turbo automatically found $crash_count crashes!
Host: $host Host: $host
...@@ -65,12 +62,11 @@ See [job details](https://git.zephyr-software.com/opensrc/libehp/-/jobs/$CI_JOB_ ...@@ -65,12 +62,11 @@ See [job details](https://git.zephyr-software.com/opensrc/libehp/-/jobs/$CI_JOB_
and [pipeline details](https://git.zephyr-software.com/opensrc/libehp/pipelines/$CI_PIPELINE_ID). and [pipeline details](https://git.zephyr-software.com/opensrc/libehp/pipelines/$CI_PIPELINE_ID).
EOM EOM
set -e
local title="Turbo found $crash_count bugs in libEHP on $date" local title="Turbo found $crash_count bugs in libEHP on $date"
local assignee_id="$GITLAB_USER_ID"
# finally post an issue # finally post an issue
curl --request POST --data-urlencode "description=$desc" --data-urlencode "title=$title" --header "PRIVATE-TOKEN: PXLgVFpgjmmugAiHTJzx " "https://git.zephyr-software.com//api/v4/projects/$proj_id/issues?&labels=bug,turbo&assignee_ids[]=3" curl --request POST --data-urlencode "description=$desc" --data-urlencode "title=$title" --header "PRIVATE-TOKEN: PXLgVFpgjmmugAiHTJzx " "https://git.zephyr-software.com//api/v4/projects/$proj_id/issues?&labels=bug,turbo&assignee_ids[]=$assignee_id"
echo "$crash_count count crashes found!" echo "$crash_count count crashes found!"
exit 1 exit 1
......
// @HEADER_COMPONENT libehp
// @HEADER_LANG C++
// @HEADER_BEGIN
/* /*
Copyright 2017-2018 University of Virginia Copyright 2017-2019 University of Virginia
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
...@@ -12,9 +16,10 @@ ...@@ -12,9 +16,10 @@
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
// @HEADER_END
#ifndef ehp_hpp #ifndef ehp_hpp
#define ehp_hpp #define ehp_hpp
......
# Copyright 2017-2018 University of Virginia # @HEADER_COMPONENT libehp
# @HEADER_LANG python
# @HEADER_BEGIN
#
# Copyright 2017-2019 University of Virginia
# #
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License.
# You may obtain a copy of the License at # You may obtain a copy of the License at
# #
# http://www.apache.org/licenses/LICENSE-2.0 # http://www.apache.org/licenses/LICENSE-2.0
# #
# Unless required by applicable law or agreed to in writing, software # Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
#
# @HEADER_END
import os import os
......
# @HEADER_COMPONENT libehp
# @HEADER_LANG python
# @HEADER_BEGIN
# Copyright 2017-2018 University of Virginia
# #
# Licensed under the Apache License, Version 2.0 (the "License"); # Copyright 2017-2019 University of Virginia
# 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 # 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
# #
# Unless required by applicable law or agreed to in writing, software # http://www.apache.org/licenses/LICENSE-2.0
# distributed under the License is distributed on an "AS IS" BASIS, #
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # Unless required by applicable law or agreed to in writing, software
# See the License for the specific language governing permissions and # distributed under the License is distributed on an "AS IS" BASIS,
# limitations under the License. # 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.
#
# @HEADER_END
env=Environment() env=Environment()
......
// @HEADER_COMPONENT libehp
// @HEADER_LANG C++
// @HEADER_BEGIN
/* /*
Copyright 2017-2018 University of Virginia Copyright 2017-2019 University of Virginia
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
...@@ -12,8 +16,10 @@ ...@@ -12,8 +16,10 @@
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
// @HEADER_END
#include <iostream> #include <iostream>
#include <iomanip> #include <iomanip>
#include <fstream> #include <fstream>
......
// @HEADER_COMPONENT libehp
// @HEADER_LANG C++
// @HEADER_BEGIN
/* /*
Copyright 2017-2018 University of Virginia Copyright 2017-2019 University of Virginia
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
...@@ -12,9 +16,10 @@ ...@@ -12,9 +16,10 @@
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
// @HEADER_END
#ifndef _DWARF2_H #ifndef _DWARF2_H
#define _DWARF2_H 1 #define _DWARF2_H 1
......
// @HEADER_COMPONENT libehp
// @HEADER_LANG C++
// @HEADER_BEGIN
/* /*
Copyright 2017-2018 University of Virginia Copyright 2017-2019 University of Virginia
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
...@@ -13,6 +17,9 @@ ...@@ -13,6 +17,9 @@
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
// @HEADER_END
#ifndef ehp_priv_hpp #ifndef ehp_priv_hpp
#define ehp_priv_hpp #define ehp_priv_hpp
......
// @HEADER_COMPONENT libehp
// @HEADER_LANG C++
// @HEADER_BEGIN
/* /*
Copyright 2017-2018 University of Virginia Copyright 2017-2019 University of Virginia
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
...@@ -12,8 +16,10 @@ ...@@ -12,8 +16,10 @@
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
// @HEADER_END
#ifndef scoop_replacement_hpp #ifndef scoop_replacement_hpp
#define scoop_replacement_hpp #define scoop_replacement_hpp
......
// @HEADER_COMPONENT libehp
// @HEADER_LANG C++
// @HEADER_BEGIN
/*
Copyright 2017-2019 University of Virginia
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.
*/
// @HEADER_END
#define use_throwing_assert #define use_throwing_assert
......