Compare commits

..

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
e6d2954ff1
!20 [sync] PR-16: Replace auto_ptr with unique_ptr
From: @openeuler-sync-bot 
Reviewed-by: @lyn1001 
Signed-off-by: @lyn1001
2024-09-30 06:28:10 +00:00
cherry530
13b2f96416 Replace auto_ptr with unique_ptr
Signed-off-by: cherry530 <707078654@qq.com>
(cherry picked from commit 3d777f925d0210db662d59993fece85aa0ae98c2)
2024-09-30 09:49:52 +08:00
openeuler-ci-bot
8529eea77b !5 Remove redundancy sourcefile and modify homepage url
From: @wang--ge
Reviewed-by: @small_leek,@overweight
Signed-off-by: @small_leek,@overweight
2021-01-05 16:08:20 +08:00
wang--ge
9f7248d248 remove reduancancy source file,modify homepage url 2021-01-04 16:13:37 +08:00
openeuler-ci-bot
7e34ea81fd !4 update to 0.21 version
Merge pull request !4 from sigui/master
2020-06-04 17:18:34 +08:00
si-gui
d21f836be7 update to 0.21 version 2020-06-04 17:04:16 +08:00
openeuler-ci-bot
41c38cf15d !3 add yaml file
Merge pull request !3 from ultra_planet/master
2020-05-09 16:59:37 +08:00
ultra_planet
be15954115 add yaml file 2020-05-09 09:32:09 +08:00
openeuler-ci-bot
c79a09818d !2 delete extra files
Merge pull request !2 from 严志华/master
2020-03-31 09:53:43 +08:00
yanzh_h
d112149df9 delete extra files 2020-03-31 09:36:09 +08:00
10 changed files with 254 additions and 158 deletions

View File

@ -1,45 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<title>Index of /pub/fedora/linux/releases/29/Everything/source/tree/Packages</title>
</head>
<body>
<h1>Index of /pub/fedora/linux/releases/29/Everything/source/tree/Packages</h1>
<pre><img src="/icons/blank.gif" alt="Icon "> <a href="?C=N;O=D">Name</a> <a href="?C=M;O=A">Last modified</a> <a href="?C=S;O=A">Size</a> <a href="?C=D;O=A">Description</a><hr><img src="/icons/back.gif" alt="[PARENTDIR]"> <a href="/pub/fedora/linux/releases/29/Everything/source/tree/">Parent Directory</a> -
<img src="/icons/folder.gif" alt="[DIR]"> <a href="0/">0/</a> 2018-10-24 21:05 -
<img src="/icons/folder.gif" alt="[DIR]"> <a href="2/">2/</a> 2018-10-24 21:05 -
<img src="/icons/folder.gif" alt="[DIR]"> <a href="3/">3/</a> 2018-10-24 21:05 -
<img src="/icons/folder.gif" alt="[DIR]"> <a href="4/">4/</a> 2018-10-24 21:05 -
<img src="/icons/folder.gif" alt="[DIR]"> <a href="5/">5/</a> 2018-10-24 21:05 -
<img src="/icons/folder.gif" alt="[DIR]"> <a href="6/">6/</a> 2018-10-24 21:05 -
<img src="/icons/folder.gif" alt="[DIR]"> <a href="7/">7/</a> 2018-10-24 21:05 -
<img src="/icons/folder.gif" alt="[DIR]"> <a href="8/">8/</a> 2018-10-24 21:05 -
<img src="/icons/folder.gif" alt="[DIR]"> <a href="9/">9/</a> 2018-10-24 21:05 -
<img src="/icons/folder.gif" alt="[DIR]"> <a href="a/">a/</a> 2018-10-24 21:30 -
<img src="/icons/folder.gif" alt="[DIR]"> <a href="b/">b/</a> 2018-10-24 22:01 -
<img src="/icons/folder.gif" alt="[DIR]"> <a href="c/">c/</a> 2018-10-24 21:30 -
<img src="/icons/folder.gif" alt="[DIR]"> <a href="d/">d/</a> 2018-10-24 21:30 -
<img src="/icons/folder.gif" alt="[DIR]"> <a href="e/">e/</a> 2018-10-24 22:01 -
<img src="/icons/folder.gif" alt="[DIR]"> <a href="f/">f/</a> 2018-10-24 22:01 -
<img src="/icons/folder.gif" alt="[DIR]"> <a href="g/">g/</a> 2018-10-24 21:30 -
<img src="/icons/folder.gif" alt="[DIR]"> <a href="h/">h/</a> 2018-10-24 22:01 -
<img src="/icons/folder.gif" alt="[DIR]"> <a href="i/">i/</a> 2018-10-24 22:01 -
<img src="/icons/folder.gif" alt="[DIR]"> <a href="j/">j/</a> 2018-10-24 21:30 -
<img src="/icons/folder.gif" alt="[DIR]"> <a href="k/">k/</a> 2018-10-24 21:20 -
<img src="/icons/folder.gif" alt="[DIR]"> <a href="l/">l/</a> 2018-10-24 22:01 -
<img src="/icons/folder.gif" alt="[DIR]"> <a href="m/">m/</a> 2018-10-24 22:01 -
<img src="/icons/folder.gif" alt="[DIR]"> <a href="n/">n/</a> 2018-10-24 22:01 -
<img src="/icons/folder.gif" alt="[DIR]"> <a href="o/">o/</a> 2018-10-24 21:51 -
<img src="/icons/folder.gif" alt="[DIR]"> <a href="p/">p/</a> 2018-10-24 22:01 -
<img src="/icons/folder.gif" alt="[DIR]"> <a href="q/">q/</a> 2018-10-24 22:01 -
<img src="/icons/folder.gif" alt="[DIR]"> <a href="r/">r/</a> 2018-10-24 21:30 -
<img src="/icons/folder.gif" alt="[DIR]"> <a href="s/">s/</a> 2018-10-24 22:01 -
<img src="/icons/folder.gif" alt="[DIR]"> <a href="t/">t/</a> 2018-10-24 21:30 -
<img src="/icons/folder.gif" alt="[DIR]"> <a href="u/">u/</a> 2018-10-24 21:30 -
<img src="/icons/folder.gif" alt="[DIR]"> <a href="v/">v/</a> 2018-10-24 21:30 -
<img src="/icons/folder.gif" alt="[DIR]"> <a href="w/">w/</a> 2018-10-24 21:30 -
<img src="/icons/folder.gif" alt="[DIR]"> <a href="x/">x/</a> 2018-10-24 21:30 -
<img src="/icons/folder.gif" alt="[DIR]"> <a href="y/">y/</a> 2018-10-24 21:30 -
<img src="/icons/folder.gif" alt="[DIR]"> <a href="z/">z/</a> 2018-10-24 21:20 -
<hr></pre>
</body></html>

22
README
View File

@ -1,22 +0,0 @@
This package provides the full collection of test programs to validate
the functionality of ATF, including all of its libraries and tools.
Because the Linux Standard Base does not recognize a /usr/tests/
directory (the standard location for ATF-based tests), the Fedora ATF
packages place its own test suite within the libexec hierarchy. In
particular, such tests can be found in /usr/libexec/atf/tests/ .
In order to execute these tests, you need to go into the directory and
use either kyua(1) (provided by the kyua-cli package) or atf-run(1) to
run them. It is highly recommended that you use kyua(1) instead of
atf-run(1), as the latter is deprecated in favor of the former.
As an example, you can simply do the following to run the full test
suite:
$ kyua test -k /usr/libexec/atf/tests/Kyuafile
Or, using the deprecated tools:
$ cd /usr/libexec/atf/tests/
$ atf-run | atf-report

View File

@ -1,36 +0,0 @@
# atf
#### Description
{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**}
#### Software Architecture
Software architecture description
#### Installation
1. xxxx
2. xxxx
3. xxxx
#### Instructions
1. xxxx
2. xxxx
3. xxxx
#### Contribution
1. Fork the repository
2. Create Feat_xxx branch
3. Commit your code
4. Create Pull Request
#### Gitee Feature
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
4. The most valuable open source project [GVP](https://gitee.com/gvp)
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)

View File

@ -1,39 +0,0 @@
# atf
#### 介绍
{**以下是码云平台说明,您可以替换此简介**
码云是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN。专为开发者提供稳定、高效、安全的云端软件开发协作平台
无论是个人、团队、或是企业,都能够用码云实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)}
#### 软件架构
软件架构说明
#### 安装教程
1. xxxx
2. xxxx
3. xxxx
#### 使用说明
1. xxxx
2. xxxx
3. xxxx
#### 参与贡献
1. Fork 本仓库
2. 新建 Feat_xxx 分支
3. 提交代码
4. 新建 Pull Request
#### 码云特技
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)

View File

@ -0,0 +1,227 @@
From 3c149a28d988654706b0dd7dc58900126be46f09 Mon Sep 17 00:00:00 2001
From: cherry530 <707078654@qq.com>
Date: Sun, 29 Sep 2024 17:09:34 +0800
Subject: [PATCH] Replace auto_ptr with unique_ptr
Signed-off-by: cherry530 <707078654@qq.com>
---
atf-c++/check.cpp | 4 ++--
atf-c++/check.hpp | 4 ++--
atf-c++/check_test.cpp | 22 +++++++++++-----------
atf-c++/detail/process_test.cpp | 8 ++++----
atf-c++/tests.hpp | 2 +-
atf-sh/atf-check.cpp | 8 ++++----
6 files changed, 24 insertions(+), 24 deletions(-)
diff --git a/atf-c++/check.cpp b/atf-c++/check.cpp
index e4d7db4..5d85800 100644
--- a/atf-c++/check.cpp
+++ b/atf-c++/check.cpp
@@ -141,7 +141,7 @@ impl::build_cxx_o(const std::string& sfile, const std::string& ofile,
return success;
}
-std::auto_ptr< impl::check_result >
+std::unique_ptr< impl::check_result >
impl::exec(const atf::process::argv_array& argva)
{
atf_check_result_t result;
@@ -150,5 +150,5 @@ impl::exec(const atf::process::argv_array& argva)
if (atf_is_error(err))
throw_atf_error(err);
- return std::auto_ptr< impl::check_result >(new impl::check_result(&result));
+ return std::unique_ptr< impl::check_result >(new impl::check_result(&result));
}
diff --git a/atf-c++/check.hpp b/atf-c++/check.hpp
index 0144ded..4d7f079 100644
--- a/atf-c++/check.hpp
+++ b/atf-c++/check.hpp
@@ -71,7 +71,7 @@ class check_result {
check_result(const atf_check_result_t* result);
friend check_result test_constructor(const char* const*);
- friend std::auto_ptr< check_result > exec(const atf::process::argv_array&);
+ friend std::unique_ptr< check_result > exec(const atf::process::argv_array&);
public:
//!
@@ -120,7 +120,7 @@ bool build_cpp(const std::string&, const std::string&,
const atf::process::argv_array&);
bool build_cxx_o(const std::string&, const std::string&,
const atf::process::argv_array&);
-std::auto_ptr< check_result > exec(const atf::process::argv_array&);
+std::unique_ptr< check_result > exec(const atf::process::argv_array&);
// Useful for testing only.
check_result test_constructor(void);
diff --git a/atf-c++/check_test.cpp b/atf-c++/check_test.cpp
index 7baf3fa..ecb5a93 100644
--- a/atf-c++/check_test.cpp
+++ b/atf-c++/check_test.cpp
@@ -52,7 +52,7 @@ extern "C" {
// ------------------------------------------------------------------------
static
-std::auto_ptr< atf::check::check_result >
+std::unique_ptr< atf::check::check_result >
do_exec(const atf::tests::tc* tc, const char* helper_name)
{
std::vector< std::string > argv;
@@ -65,7 +65,7 @@ do_exec(const atf::tests::tc* tc, const char* helper_name)
}
static
-std::auto_ptr< atf::check::check_result >
+std::unique_ptr< atf::check::check_result >
do_exec(const atf::tests::tc* tc, const char* helper_name, const char *carg2)
{
std::vector< std::string > argv;
@@ -248,11 +248,11 @@ ATF_TEST_CASE_HEAD(exec_cleanup)
}
ATF_TEST_CASE_BODY(exec_cleanup)
{
- std::auto_ptr< atf::fs::path > out;
- std::auto_ptr< atf::fs::path > err;
+ std::unique_ptr< atf::fs::path > out;
+ std::unique_ptr< atf::fs::path > err;
{
- std::auto_ptr< atf::check::check_result > r =
+ std::unique_ptr< atf::check::check_result > r =
do_exec(this, "exit-success");
out.reset(new atf::fs::path(r->stdout_path()));
err.reset(new atf::fs::path(r->stderr_path()));
@@ -272,7 +272,7 @@ ATF_TEST_CASE_HEAD(exec_exitstatus)
ATF_TEST_CASE_BODY(exec_exitstatus)
{
{
- std::auto_ptr< atf::check::check_result > r =
+ std::unique_ptr< atf::check::check_result > r =
do_exec(this, "exit-success");
ATF_REQUIRE(r->exited());
ATF_REQUIRE(!r->signaled());
@@ -280,7 +280,7 @@ ATF_TEST_CASE_BODY(exec_exitstatus)
}
{
- std::auto_ptr< atf::check::check_result > r =
+ std::unique_ptr< atf::check::check_result > r =
do_exec(this, "exit-failure");
ATF_REQUIRE(r->exited());
ATF_REQUIRE(!r->signaled());
@@ -288,7 +288,7 @@ ATF_TEST_CASE_BODY(exec_exitstatus)
}
{
- std::auto_ptr< atf::check::check_result > r =
+ std::unique_ptr< atf::check::check_result > r =
do_exec(this, "exit-signal");
ATF_REQUIRE(!r->exited());
ATF_REQUIRE(r->signaled());
@@ -321,12 +321,12 @@ ATF_TEST_CASE_HEAD(exec_stdout_stderr)
}
ATF_TEST_CASE_BODY(exec_stdout_stderr)
{
- std::auto_ptr< atf::check::check_result > r1 =
+ std::unique_ptr< atf::check::check_result > r1 =
do_exec(this, "stdout-stderr", "result1");
ATF_REQUIRE(r1->exited());
ATF_REQUIRE_EQ(r1->exitcode(), EXIT_SUCCESS);
- std::auto_ptr< atf::check::check_result > r2 =
+ std::unique_ptr< atf::check::check_result > r2 =
do_exec(this, "stdout-stderr", "result2");
ATF_REQUIRE(r2->exited());
ATF_REQUIRE_EQ(r2->exitcode(), EXIT_SUCCESS);
@@ -372,7 +372,7 @@ ATF_TEST_CASE_BODY(exec_unknown)
argv.push_back("/foo/bar/non-existent");
atf::process::argv_array argva(argv);
- std::auto_ptr< atf::check::check_result > r = atf::check::exec(argva);
+ std::unique_ptr< atf::check::check_result > r = atf::check::exec(argva);
ATF_REQUIRE(r->exited());
ATF_REQUIRE_EQ(r->exitcode(), 127);
}
diff --git a/atf-c++/detail/process_test.cpp b/atf-c++/detail/process_test.cpp
index 0686d2a..97f9a08 100644
--- a/atf-c++/detail/process_test.cpp
+++ b/atf-c++/detail/process_test.cpp
@@ -196,8 +196,8 @@ ATF_TEST_CASE_BODY(argv_array_assign)
const char* const carray1[] = { "arg1", NULL };
const char* const carray2[] = { "arg1", "arg2", NULL };
- std::auto_ptr< argv_array > argv1(new argv_array(carray1));
- std::auto_ptr< argv_array > argv2(new argv_array(carray2));
+ std::unique_ptr< argv_array > argv1(new argv_array(carray1));
+ std::unique_ptr< argv_array > argv2(new argv_array(carray2));
*argv2 = *argv1;
ATF_REQUIRE_EQ(argv2->size(), argv1->size());
@@ -226,8 +226,8 @@ ATF_TEST_CASE_BODY(argv_array_copy)
const char* const carray[] = { "arg0", NULL };
- std::auto_ptr< argv_array > argv1(new argv_array(carray));
- std::auto_ptr< argv_array > argv2(new argv_array(*argv1));
+ std::unique_ptr< argv_array > argv1(new argv_array(carray));
+ std::unique_ptr< argv_array > argv2(new argv_array(*argv1));
ATF_REQUIRE_EQ(argv2->size(), argv1->size());
ATF_REQUIRE(std::strcmp((*argv2)[0], (*argv1)[0]) == 0);
diff --git a/atf-c++/tests.hpp b/atf-c++/tests.hpp
index ce2fb1d..a03cc85 100644
--- a/atf-c++/tests.hpp
+++ b/atf-c++/tests.hpp
@@ -73,7 +73,7 @@ class tc {
tc(const tc&);
tc& operator=(const tc&);
- std::auto_ptr< tc_impl > pimpl;
+ std::unique_ptr< tc_impl > pimpl;
protected:
virtual void head(void);
diff --git a/atf-sh/atf-check.cpp b/atf-sh/atf-check.cpp
index 866b7bb..c236652 100644
--- a/atf-sh/atf-check.cpp
+++ b/atf-sh/atf-check.cpp
@@ -103,7 +103,7 @@ struct output_check {
};
class temp_file : public std::ostream {
- std::auto_ptr< atf::fs::path > m_path;
+ std::unique_ptr< atf::fs::path > m_path;
int m_fd;
public:
@@ -326,7 +326,7 @@ flatten_argv(char* const* argv)
}
static
-std::auto_ptr< atf::check::check_result >
+std::unique_ptr< atf::check::check_result >
execute(const char* const* argv)
{
// TODO: This should go to stderr... but fixing it now may be hard as test
@@ -342,7 +342,7 @@ execute(const char* const* argv)
}
static
-std::auto_ptr< atf::check::check_result >
+std::unique_ptr< atf::check::check_result >
execute_with_shell(char* const* argv)
{
const std::string cmd = flatten_argv(argv);
@@ -802,7 +802,7 @@ atf_check::main(void)
int status = EXIT_FAILURE;
- std::auto_ptr< atf::check::check_result > r =
+ std::unique_ptr< atf::check::check_result > r =
m_xflag ? execute_with_shell(m_argv) : execute(m_argv);
if (m_status_checks.empty())
--
2.44.0

Binary file not shown.

Binary file not shown.

BIN
atf-0.21.tar.gz Normal file

Binary file not shown.

View File

@ -1,13 +1,14 @@
Name: atf
Version: 0.20
Release: 13
Version: 0.21
Release: 3
License: BSD
Summary: Testing Framework for Automated
URL: http://code.google.com/p/kyua/wiki/ATF
Source0: https://github.com/jmmv/atf/releases/download/atf-0.20/atf-0.20.tar.gz
Source1: README
URL: https://github.com/jmmv/atf/
Source0: https://github.com/jmmv/atf/archive/atf-0.21.tar.gz
BuildRequires: gcc-c++
Patch0: Replace-auto_ptr-with-unique_ptr.patch
BuildRequires: gcc-c++ autoconf libtool
%description
No main package is built here. Because it is not used.
@ -80,10 +81,10 @@ Summary: Help documents for atf
Man pages and other related help documents for atf.
%prep
%autosetup -n %{name}-%{version} -p1
cp -p %{SOURCE1} README
%autosetup -n atf-%{name}-%{version} -p1
%build
autoreconf -i -s
%configure INSTALL="/usr/bin/install -p" --disable-static
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
@ -102,7 +103,7 @@ make check
/sbin/ldconfig
%files -n libatf-c
%{_libdir}/libatf-c.{so.0,so.0.0.0}
%{_libdir}/libatf-c.{so.1,so.1.0.0}
%{_datadir}/man/man1/atf-test-program.1.gz
%{_datadir}/man/man4/atf-test-case.4.gz
@ -112,7 +113,7 @@ make check
%{_libdir}/{libatf-c.so,pkgconfig/atf-c.pc}
%files -n libatf-c++
%{_libdir}/libatf-c++.{so.1,so.1.0.0}
%{_libdir}/libatf-c++.{so.2,so.2.0.0}
%files -n libatf-c++-devel
%{_datadir}/aclocal/atf-c++.m4
@ -133,13 +134,19 @@ make check
%{_libexecdir}/atf/tests
%files help
%{_mandir}/man1/atf-sh.1.gz
%{_mandir}/man1/atf-check.1.gz
%{_mandir}/man3/atf-sh-api.3.gz
%{_mandir}/man3/atf-c++-api.3.gz
%{_mandir}/man3/atf-c-api.3.gz
%{_mandir}/man1/*
%{_mandir}/man3/*
%{_mandir}/man7/*
%changelog
* Sun Sep 29 2024 xu_ping <707078654@qq.com> - 0.21-3
- Replace auto_ptr with unique_ptr
* Thu Dec 31 2020 Ge Wang <wangge20@huawei.com> - 0.21-2
- Modify Source url and remove redundancy source file
* Thu Jun 4 2020 sunguoshuai <sunguoshuai@huawei.com> 0.21-1
- Package update to 0.21-1
* Tue Dec 31 2019 duyeyu <duyeyu@huawei.com> - 0.20-13
- Package init

4
atf.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: jmmv/atf
tag_prefix: "^v"
seperator: "."