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()
echo "The report is: "
echo "$report" | tee fail_report.yaml
local declare crash_count=$(echo "$report"|shyaml get-value failing-input-count)
if [[ $crash_count == 0 ]]; then
echo "No crashes found"
exit 0
else
set -x
# upload the report.
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)
......@@ -49,8 +47,7 @@ function main()
local host=$(hostname)
local md=$(echo $upload_report | shyaml get-value markdown)
local desc=""
set +e # allow read to return non-zero as read does that on EOF
read -r -d '' desc << EOM
read -r -d '' desc || true << EOM
Turbo automatically found $crash_count crashes!
Host: $host
......@@ -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).
EOM
set -e
local title="Turbo found $crash_count bugs in libEHP on $date"
local assignee_id="$GITLAB_USER_ID"
# 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!"
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");
you may not use this file except in compliance with the License.
......@@ -12,9 +16,10 @@
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
#ifndef 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");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# 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
# 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.
# 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
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");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# Copyright 2017-2019 University of Virginia
#
# 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
# 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.
# 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
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");
you may not use this file except in compliance with the License.
......@@ -12,8 +16,10 @@
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
#include <iostream>
#include <iomanip>
#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");
you may not use this file except in compliance with the License.
......@@ -12,9 +16,10 @@
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
#ifndef _DWARF2_H
#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");
you may not use this file except in compliance with the License.
......@@ -13,6 +17,9 @@
See the License for the specific language governing permissions and
limitations under the License.
*/
// @HEADER_END
#ifndef 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");
you may not use this file except in compliance with the License.
......@@ -12,8 +16,10 @@
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
#ifndef 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
......